package com.hbu.product.hbumallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hbu.common.utils.PageUtils;
import com.hbu.common.utils.R;
import com.hbu.product.hbumallproduct.entity.CategoryEntity;
import com.hbu.product.hbumallproduct.vo.Catelog2VO;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ???????
 *
 * @author zhaoxiaohan
 * @email 13315217827@163.com
 * @date 2022-10-27 22:15:38
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    R removeMenusByIds(Long[] catIds);

    Long[] findCategoryPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<CategoryEntity> getFirstLevelCategorys();

    Map<String, List<Catelog2VO>> getCatalogJson();
}

